#include "mpHttpMethod.h"

namespace MP{
////private member
//namespace{
//} //private member



namespace StringUtils{

std::string httpMethodToString(MP::HTTP::HTTP_METHOD method) {
    switch (method) {
    case MP::HTTP::HTTP_GET:
        return "GET";
    case MP::HTTP::HTTP_HEAD:
        return "HEAD";
    case MP::HTTP::HTTP_PUT:
        return "PUT";
    case MP::HTTP::HTTP_POST:
        return "POST";
    case MP::HTTP::HTTP_DELETE:
        return "DELETE";
    case MP::HTTP::HTTP_OPTIONS:
        return "OPTIONS";
    default:
        return "UNKNOWN";
    }
}

}   //StringUtils

}   //END MP
